package com.fattyCorps.common.packet.hero.component.prop;

import com.fattyCorps.common.enums.battle.calc.ECalcType;
import com.fattyCorps.common.enums.battle.prop.EStaticProp;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class PropAdd {
    public String value = "0";
    public ECalcType calcType = ECalcType.PerValue;
    public EStaticProp propType = EStaticProp.Att;

    public void add(String addVal) {
        BigDecimal addValB = new BigDecimal(addVal);
        BigDecimal orgValB = new BigDecimal(value);
        value = addValB.add(orgValB).toString();
    }
}